using UnityEngine;
using System.Collections;

public class Level2 : MonoBehaviour {
    private float meioDeTelax;
	private float meioDeTelay;
	private float timeToGo;
	
	// Use this for initialization
	void Start () {
	 meioDeTelax = Screen.width/2; 
	meioDeTelay = Screen.height/2; 

	}
	
	
	// Update is called once per frame
	void Update () {
	
	}
void OnGUI(){
		
		Rect button1 = new Rect(meioDeTelax-60 ,meioDeTelay + 40,200, 30);
		Rect button2 = new Rect(meioDeTelax-200 ,meioDeTelay + 80,200, 30);
				
		//criar botao
		if(GUI.Button(button1, "Level1"))
		{
			Application.LoadLevel("Level1");
		}
		if(GUI.Button(button2, "Menu"))
		{
			Application.LoadLevel("Menu");
		}
	}
}